package com.zw.yzk.kabu.data.constant;

/**
 * Created by zhanwei on 2016/12/24.
 */

public class Constant {
    //正式环境
    public static final String BASE_URL = "https://app.tokabu.com/";
    //测试环境
//    public static final String BASE_URL = "https://appceshi.tokabu.com/";
    public static final String MEDIA_TYPE_FILE = "application/octet-stream";
    public static final String MEDIA_TYPE_JSON = "application/json; charset=utf-8";

    //网络成功返回码
    public static final int RESULT_OK = 200;
    //错误代码
    public static final int UNKNOWN_ERROR = -1;//未知错误 `
    public static final int UNKNOWN_INVALID_TOKEN = 444;//用户凭证失效
    public static final int MUST_LOGIN = 445;//登陆用户才有权操作
    public static final int PARSE_ERROR = 1000;//解析服务器数据失败
    public static final int UNKNOWN_HOST = 1001;//UnknownHostException
    public static final int SOCKET_ERROR = 1002;//SocketException
    public static final int SOCKET_TIMEOUT = 1003;//SocketTimeoutException
    public static final int IO_ERROR = 10004;//SocketTimeoutException
    public static final int CONNECT_ERR0R = 10005;//ConnectException
    public static final int NETWORK_ERROR = 10006;//ConnectException
    public static final int UPLOAD_QINIU_ERROR = 10007;//上传图片到七牛失败

}
